import Vue from 'vue'
import Router from 'vue-router'
import home from '@/components/home'
import login from '@/components/login'
import liveview from '@/components/liveview'
import delcam from '@/components/delcam'
import review from '@/components/review'
import map from '@/components/map'
import live from '@/components/live'
import list from '@/components/list'

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: '/home',
      name: 'home',
      component: home,
      meta: {
        title: '算法配置'
      }
    },
    {
      path: '/',
      name: 'login',
      component: login,
      meta: {
        title: '登录'
      }
    },
    {
      path: '/liveview',
      name: 'liveview',
      component: liveview,
      meta: {
        title: 'liveview'
      }
    },
    {
      path: '/delcam',
      name: 'delcam',
      component: delcam,
      meta: {
        title: 'delcam'
      }
    },
    {
      path: '/map',
      name: 'map',
      component: map,
      meta: {
        title: 'map'
      }
    },
    {
      path: '/review',
      name: 'review',
      component: review,
      meta: {
        title: 'review'
      }
    },
    {
      path: '/live',
      name: 'live',
      component: live,
      meta: {
        title: 'live'
      }
    },
    {
      path: '/list',
      name: 'list',
      component: list,
      meta: {
        title: 'list'
      }
    }
  ]
})
